package com.googlecode.wicketcharts.showcase;

import org.apache.wicket.protocol.http.WebApplication;

import com.google.gson.GsonBuilder;
import com.googlecode.wicketcharts.highcharts.gson.GsonFactory;

/**
 * Application object for your web application. If you want to run this
 * application without deploying, run the Start class.
 * 
 * @see com.googlecode.wicketcharts.showcase.Start#main(String[])
 */
public class WicketApplication extends WebApplication {
	/**
	 * @see org.apache.wicket.Application#getHomePage()
	 */
	@Override
	public Class<HomePage> getHomePage() {
		return HomePage.class;
	}

	/**
	 * @see org.apache.wicket.Application#init()
	 */
	@Override
	public void init() {
		super.init();
		GsonBuilder builder = new GsonBuilder();
		builder.setPrettyPrinting();
		GsonFactory.setGsonBuilder(builder);

	}
}
